home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Palm Z22
/
Palm Z22 CD.iso
/
pc
/
PalmSoftware.pkg
/
Contents
/
Resources
/
VolumeCheck
< prev
Wrap
Text File
|
2005-08-11
|
860b
|
41 lines
#!/bin/sh
# File name: VolumeCheck
#
# Description:
#
# Copyright 2004, palmOne , Inc.
#
#
# Modification History:
# <1> 05/06/04 JMP Implemented
#
#
# Argument 1 (the only argument to VolumeCheck) is the full path to a volume
# in Installer's Target Select panel that a user can choose to
# install the software on.
# The path is of the form "/" or /Volume/{volume name}
#
retval=0
if [ -e "$1/System/Library/CFMSupport" ]
then
if [ -e "$1/Applications" ]
then
if [ -e "$1/Library" ]
then
retval=0
else
let retval=(1<<5)
fi
else
let retval=(1<<5)
fi
else
let retval=(1<<5)
fi
# Sets the message value bits (bits 0 to 4) to 16,
# specifying the message associated with "16" in the strings file.
#
#let retval=(retval|16)
exit $retval